package com.hwl.trade.feign;

import com.hwl.commonutils.result.RespBean;
import com.hwl.servicebase.dto.CourseDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "service-edu", fallback = EduCourseServiceImpl.class)
public interface EduCourseService {

    @GetMapping("/api/eduCourse/inner/getCourseDto/{courseId}")
    CourseDto getCourseDtoById(@PathVariable("courseId") String courseId);

    @GetMapping("/api/eduCourse/inner/updateBuyCount/{id}")
    RespBean updateBuyCountById(@PathVariable("id") String id);
}
